package com.yltrcc.blog.generate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName blog_theme
 */
@TableName(value ="blog_theme")
public class BlogTheme implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 主题名(url)
     */
    private String themeName;

    /**
     * 主题描述
     */
    private String themeDescribe;

    /**
     * 主题预览图
     */
    private String themeImg;

    /**
     * 0未启用1已启用
     */
    private Integer themeStatus;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 主题名(url)
     */
    public String getThemeName() {
        return themeName;
    }

    /**
     * 主题名(url)
     */
    public void setThemeName(String themeName) {
        this.themeName = themeName;
    }

    /**
     * 主题描述
     */
    public String getThemeDescribe() {
        return themeDescribe;
    }

    /**
     * 主题描述
     */
    public void setThemeDescribe(String themeDescribe) {
        this.themeDescribe = themeDescribe;
    }

    /**
     * 主题预览图
     */
    public String getThemeImg() {
        return themeImg;
    }

    /**
     * 主题预览图
     */
    public void setThemeImg(String themeImg) {
        this.themeImg = themeImg;
    }

    /**
     * 0未启用1已启用
     */
    public Integer getThemeStatus() {
        return themeStatus;
    }

    /**
     * 0未启用1已启用
     */
    public void setThemeStatus(Integer themeStatus) {
        this.themeStatus = themeStatus;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BlogTheme other = (BlogTheme) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getThemeName() == null ? other.getThemeName() == null : this.getThemeName().equals(other.getThemeName()))
            && (this.getThemeDescribe() == null ? other.getThemeDescribe() == null : this.getThemeDescribe().equals(other.getThemeDescribe()))
            && (this.getThemeImg() == null ? other.getThemeImg() == null : this.getThemeImg().equals(other.getThemeImg()))
            && (this.getThemeStatus() == null ? other.getThemeStatus() == null : this.getThemeStatus().equals(other.getThemeStatus()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getThemeName() == null) ? 0 : getThemeName().hashCode());
        result = prime * result + ((getThemeDescribe() == null) ? 0 : getThemeDescribe().hashCode());
        result = prime * result + ((getThemeImg() == null) ? 0 : getThemeImg().hashCode());
        result = prime * result + ((getThemeStatus() == null) ? 0 : getThemeStatus().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", themeName=").append(themeName);
        sb.append(", themeDescribe=").append(themeDescribe);
        sb.append(", themeImg=").append(themeImg);
        sb.append(", themeStatus=").append(themeStatus);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}